package util

func CheckNetWorkStatus(ip string) bool {
	ping, err := PingNew(ip, 8, Data)
	if err != nil {
		return false
	}
	defer ping.Close()
	if ping.PingLite() {
		return PortScanner(ip, 502)
	} else {
		return false
	}
}
